package zuo.from0516.real;

import com.sun.source.tree.Tree;

import java.util.List;

public class Code01_day0909 {
    public static class TreeNode{
        int value;
        TreeNode left;
        TreeNode right;

        public TreeNode(int value, TreeNode left, TreeNode right) {
            this.value = value;
            this.left = left;
            this.right = right;
        }
    }
    public static void main(String[] args) {

    }

    public void inorder(TreeNode root, List<Integer> res){
        if(root == null){
            return;
        }
        inorder(root.left,res);
        res.add(root.value);
        inorder(root.right,res);

    }
}
